<!-- author: 薛皓文 -->
<!-- date: 2024-11-23 23:02:10 -->
<!-- description:  -->
<template>
    <view class="container">
        <wd-calendar v-model="value"   @confirm="handleConfirm" />
    </view>
</template>
<script setup>
import { reactive, toRefs } from 'vue';
import { onLoad } from '@dcloudio/uni-app';

const state = reactive({
    name: null,
    value:Date.now()
})
const { name,value } = toRefs(state);
 
 const handleConfirm = ({ value }) =>{
  console.log(value)
}

// 跳转登录页
const goLogin = () => {
    uni.navigateTo({
        // url: '/pages/login/login-index'
        url: '/pages/map/map-index'
    })
}
onLoad(() => {
    goLogin();
});

</script>
<style lang="scss" scoped>
.container {}
</style>
